package com.link2room.rodimus.feign.trailbreaker;

import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.trailbreaker.dto.param.PrePayParamDto;
import com.link2room.trailbreaker.dto.param.RefundParamDto;
import com.link2room.trailbreaker.dto.result.PrepayResDto;
import com.link2room.trailbreaker.dto.result.base.RefundResDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by LN on 2017/12/10
 */
@FeignClient("${spring.gateway.name}/${feign.trailbreaker}")
public interface RefundFeignService {
    @RequestMapping(method = RequestMethod.POST,value = "/in/refund",consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseResultDto<RefundResDto> refund(@RequestBody RefundParamDto paramDto) ;
}
